From d4aa78f4ab9ed0ada2dfeee0dc766e113fcd7d1d Mon Sep 17 00:00:00 2001 From: oliskoli Date: Wed, 3 Sep 2008 22:03:54 +0000 Subject: [PATCH] destinator: Be more liberal with sat and fix values. --- destinator.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/destinator.c b/destinator.c index ce88a0961..108955001 100644 --- a/destinator.c +++ b/destinator.c @@ -317,19 +317,13 @@ destinator_read_trk(void) wpt->creation_time = mkgmtime(&tm); wpt->microseconds = ((int)time % 1000) * 1000; - if ((wpt->sat > 0) && (wpt->fix > 0)) { - - wpt->fix++; - - if (! trk) { - trk = route_head_alloc(); - track_add_head(trk); - } - - track_add_wpt(trk, wpt); + if (wpt->fix > 0) wpt->fix++; + + if (! trk) { + trk = route_head_alloc(); + track_add_head(trk); } - else - waypt_free(wpt); + track_add_wpt(trk, wpt); } } -- 2.30.2